package streamforce.workload;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayList;

import streamforce.crypto.event.StockEvent;

public class Test {
	public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException{

		ObjectInputStream ois;

			ois = new ObjectInputStream(new FileInputStream(args[0])); 
			ArrayList<StockEvent> se = (ArrayList<StockEvent>)ois.readObject(); 			
			for (int i=0; i<se.size(); i++){
				StockEvent se1 = se.get(i); 				
			}
			System.out.println(args[0]+" : "+se.size());
	}
}
